import React from 'react';
const Main = React.lazy(() => import("../pages/main"));
const Cart = React.lazy(() => import("../pages/cart"));
const Category = React.lazy(() => import("../pages/category"));
const Ceo = React.lazy(() => import("../pages/ceo"));
const Me = React.lazy(() => import("../pages/me"));
const Item = React.lazy(() => import("../pages/item"));
const SearchCom = React.lazy(() => import("../pages/search"));
const ListCom = React.lazy(() => import("../pages/list"));
const Login = React.lazy(() => import("../pages/login"));
const Page404 = React.lazy(() => import("../pages/page404"));
const routes = [
    { path: '/', component: Main, auth: false, name: "/" },
    { path: '/category', component: Category, auth: false, name: "/category" },
    { path: '/cart', component: Cart, auth: true, name: "/cart" },
    { path: '/ceo', component: Ceo, auth: false, name: "/ceo" },
    { path: '/me', component: Me, auth: true, name: "/me" },
    { path: '/item/:id', component: Item, auth: false, name: "/item" },
    { path: '/search', component: SearchCom, auth: false, name: "/search" },
    { path: '/list/:searchstr', component: ListCom, auth: false, name: "/list" },
    { path: '/login', component: Login, auth: false, name: "/login" },
    { path: '/page404', component: Page404, auth: false, name: "/page404" }
]
export default routes;